package com.jyh.userInfo.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jyh.userInfo.entity.JyhPerson;
import com.jyh.userInfo.service.PersonService;

@RestController
@RequestMapping("/user")
public class PersonInfoController {
	private Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired 
	PersonService personService;
	
	@RequestMapping
	public List<JyhPerson> hello(JyhPerson jyhPerson) {
		return personService.find(jyhPerson);
	}
}
